package com.indusfo.spc.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.indusfo.spc.common.pojo.BasePojo;

import java.util.Date;

public class BatchScrapDetail extends BasePojo {
    // 产品报废明细ID
    private Integer batchScrapDetailId;
    // 产品报废ID
    private Integer batchScrapId;
    // 批次ID
    private Integer batchId;
    // 批次编码
    private String batchCode;
    // 任务单号
    private String orderNo;
    // 物料编码
    private String matCode;
    // 物料名称
    private String matName;
    // 批次上次审核前状态
    private Integer productStateId;
    // 数量
    private String num = "1";
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createDate;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date modifyDate;

    private String remark;

    private Integer dataState;
    // 批次状态翻译
    private String productionStateName;

    public String getProductionStateName() {
        return productionStateName;
    }

    public void setProductionStateName(String productionStateName) {
        this.productionStateName = productionStateName;
    }

    public Integer getProductStateId() {
        return productStateId;
    }

    public void setProductStateId(Integer productStateId) {
        this.productStateId = productStateId;
    }

    public Integer getBatchScrapDetailId() {
        return batchScrapDetailId;
    }

    public void setBatchScrapDetailId(Integer batchScrapDetailId) {
        this.batchScrapDetailId = batchScrapDetailId;
    }

    public Integer getBatchScrapId() {
        return batchScrapId;
    }

    public void setBatchScrapId(Integer batchScrapId) {
        this.batchScrapId = batchScrapId;
    }

    public Integer getBatchId() {
        return batchId;
    }

    public void setBatchId(Integer batchId) {
        this.batchId = batchId;
    }

    public String getBatchCode() {
        return batchCode;
    }

    public void setBatchCode(String batchCode) {
        this.batchCode = batchCode;
    }

    public String getOrderNo() {
        return orderNo;
    }

    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }

    public String getMatCode() {
        return matCode;
    }

    public void setMatCode(String matCode) {
        this.matCode = matCode;
    }

    public String getMatName() {
        return matName;
    }

    public void setMatName(String matName) {
        this.matName = matName;
    }

    public String getNum() {
        return num;
    }

    public void setNum(String num) {
        this.num = num;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Date getModifyDate() {
        return modifyDate;
    }

    public void setModifyDate(Date modifyDate) {
        this.modifyDate = modifyDate;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark == null ? null : remark.trim().replace(" ","");
    }

    public Integer getDataState() {
        return dataState;
    }

    public void setDataState(Integer dataState) {
        this.dataState = dataState;
    }
}